import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';

/**
 * id编号
 */
export class IdDto {
  @IsString()
  @IsNotEmpty()
  @ApiProperty({
    description: 'ID',
    required: true,
  })
  _id: string;
}

/**
 * 多个id
 */
export class IdsDto {
  @IsString()
  @IsNotEmpty()
  @ApiProperty({
    description: 'ID数组',
    required: true,
  })
  _ids: string[];
}
